//
//  UrlBuilder.h
//  HelloTaxi
//
//  Created by zhenhua zhou on 12-7-10.
//  Copyright (c) 2012年 ECUST. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GeoPos.h"

@interface UrlBuilder : NSObject
{
@private
    NSString * mUrlHeader;
    
    NSString * mApiDirection;
    NSString * mApiGeoCoding;
    
    NSString * mXmlOutput;
    NSString * mJsonOutput;
    
    NSString * mOrigin;
    NSString * mDestination;
    
    NSString * mAddress;
    
    NSString * mSensor;
    
}

- (UrlBuilder *) init;
- (void) dealloc;
- (NSString *) buildDirectionUrlByAddressFrom:(NSString *)origin to:(NSString *) destination;
- (NSString *) buildDirectionUrlByPosFrom:(GeoPos *)origin to:(GeoPos *) destination;
- (NSString *) buildDirectionUrlByFromPos:(GeoPos *)origin toAddress:(NSString *) destination;
- (NSString *) buildGeoCodingUrl:(NSString *)address;
+ (UrlBuilder *) getInstance;

@end
